<template>
  <div v-if="crud.props.searchToggle">
    <el-input v-model="query.url" placeholder="请求路径" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-select v-model="query.urlMethod" clearable size="small" placeholder="请求方法" class="filter-item" style="width: 200px" @change="crud.toQuery">
      <el-option v-for="item in dict.dict.type_common_http_method" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue" />
    </el-select>
    <el-select v-model="query.filterMethod" clearable size="small" placeholder="返回方式" class="filter-item" style="width: 200px" @change="crud.toQuery">
      <el-option v-for="item in dict.dict.type_gw_bl_filter_return" :key="item.dictValue" :label="item.dictLabel" :value="item.dictValue" />
    </el-select>
    <el-input v-model="query.urlIp" placeholder="请求地址" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />
    <el-input v-model="query.urlUserId" placeholder="请求用户" style="width: 200px;" class="filter-item" @keyup.enter.native="crud.toQuery" />

    <!--通用查询-->
    <rrOperation :crud="crud" />
  </div>
</template>

<script>
import { header } from '@crud/crud'
import rrOperation from '@crud/RR.operation'

export default {
  components: { rrOperation },
  mixins: [header()],
  props: {
    dict: {
      type: Object,
      required: true
    },
    permission: {
      type: Object,
      required: true
    }
  }
}
</script>
